package tmall.portal.eobj;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.UserDetails;
import tmall.framework.eobj.AbstractEObj;

import java.util.Collection;


@TableName("sec-user")
@Data
public class UserEobj extends AbstractEObj implements UserDetails {
    private String userId;
    private String username;
    private String password;
    private String email;
    private String phoneNumber;
    private String status;



    @Override
    public Collection<? extends GrantedAuthority> getAuthorities() {
        return null;
    }

    @Override
    public boolean isAccountNonExpired() {
        return false;
    }

    @Override
    public boolean isAccountNonLocked() {
        return false;
    }

    @Override
    public boolean isCredentialsNonExpired() {
        return false;
    }

    @Override
    public boolean isEnabled() {
        return false;
    }
}
